/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.ts.dao;

import java.util.Collection;
import java.util.List;

import com.xy.biz.ts.domain.po.ExaminationQuestionPO;
import com.xy.biz.ts.domain.query.ExaminationQuestionQuery;

/**
 *
 *
 * @author wcs
 * @date 2021-3-8
 */
public interface ExaminationQuestionDao {

	/**
	 * 保存
	 *
	 * @param examinationQuestionPO
	 */
	int saveExaminationQuestion(ExaminationQuestionPO examinationQuestionPO);

	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllExaminationQuestion(Collection<ExaminationQuestionPO> collection);

	/**
	 * 更新
	 *
	 * @param examinationQuestionPO
	 */
	int updateExaminationQuestion(ExaminationQuestionPO examinationQuestionPO);

	/**
	 * 删除
	 *
	 * @param examinationQuestionId
	 */
	int deleteExaminationQuestion(Long examinationQuestionId);

	/**
	 * 查找一个
	 *
	 * @param examinationQuestionId
	 * @return
	 */
	ExaminationQuestionPO getExaminationQuestion(Long examinationQuestionId);

	/**
	 * 查找多条
	 *
	 * @param collection
	 * @return
	 */
	List<ExaminationQuestionPO> listExaminationQuestionById(Collection<Long> collection);

	/**
	 * 条件查找多条
	 *
	 * @param query 查找条件
	 * @return
	 */
	List<ExaminationQuestionPO> listExaminationQuestion(ExaminationQuestionQuery query);

	/**
	 * 条件统计个数
	 *
	 * @param query 查找条件
	 * @return
	 */
	int countExaminationQuestion(ExaminationQuestionQuery query);

}
